package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_accesslog")
//@NamedQueries({@NamedQuery(name = "NewsAccesslog.findAll", query = "SELECT n FROM NewsAccesslog n"), @NamedQuery(name = "NewsAccesslog.findById", query = "SELECT n FROM NewsAccesslog n WHERE n.id = :id")})
public class NewsAccesslog implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "cyear")                     //年
    private Integer cyear;
    @Column(name = "cmonth")                    //月
    private Integer cmonth; 
    @Column(name = "cday")                      //日
    private Integer cday;
    @Column(name = "chour")                     //时
    private Integer chour;
    @Column(name = "udid")                      //手机唯一标识
    private String udid;
    @Column(name = "mobile")                    //手机号
    private String mobile;
    @Column(name = "cip")                       //最后上行ip
    private String cip;
    @Column(name = "ciparea")                   //ip属地   
    private String ciparea;    
    @Column(name = "cipcarrer")                 //ip属运营商
    private String cipcarrer;
    @Column(name = "mobilearea")                //手机号属地
    private String mobilearea;
    @Column(name = "mobilecarrer")              //手机号属运营商
    private String mobilecarrer;
    
    public NewsAccesslog(){
    }
    public NewsAccesslog(Integer id){
    	this.id=id;
    }
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCyear() {
		return cyear;
	}
	public void setCyear(Integer cyear) {
		this.cyear = cyear;
	}
	public Integer getCmonth() {
		return cmonth;
	}
	public void setCmonth(Integer cmonth) {
		this.cmonth = cmonth;
	}
	public Integer getCday() {
		return cday;
	}
	public void setCday(Integer cday) {
		this.cday = cday;
	}
	public Integer getChour() {
		return chour;
	}
	public void setChour(Integer chour) {
		this.chour = chour;
	}
	public String getUdid() {
		return udid;
	}
	public void setUdid(String udid) {
		this.udid = udid;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getCip() {
		return cip;
	}
	public void setCip(String cip) {
		this.cip = cip;
	}
	public String getCiparea() {
		return ciparea;
	}
	public void setCiparea(String ciparea) {
		this.ciparea = ciparea;
	}
	public String getCipcarrer() {
		return cipcarrer;
	}
	public void setCipcarrer(String cipcarrer) {
		this.cipcarrer = cipcarrer;
	}
	public String getMobilearea() {
		return mobilearea;
	}
	public void setMobilearea(String mobilearea) {
		this.mobilearea = mobilearea;
	}
	public String getMobilecarrer() {
		return mobilecarrer;
	}
	public void setMobilecarrer(String mobilecarrer) {
		this.mobilecarrer = mobilecarrer;
	}
	@Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof NewsAccesslog)) {
            return false;
        }
        NewsAccesslog other = (NewsAccesslog) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsAccesslog[id=" + id + "]";
    }
    
}
